import { createRouter, createWebHashHistory } from "vue-router";

const router = createRouter({
  history: createWebHashHistory("/"),
  routes: [
    {
      path: "/",
      redirect: "login",
    },
    {
      path: "/login",
      name: "login",
      component: () => import("../views/login/index.vue"),
    },
    {
      path: "/icon-tool",
      name: "icon-tool",
      component: () => import("../views/iconTool/index.vue"),
    },
    {
      path: "/search",
      name: "search",
      component: () => import("../views/search/index.vue"),
    },
    {
      path: "/setting",
      name: "setting",
      component: () => import("../views/setting/index.vue"),
    },
  ],
});

export default router;
